    <p>
    
    <!-- use messages tag to display errors -->
    <logic:messagesPresent>
      <bean:message key="error.header"/>
        <ul>
          <html:messages id="error"> 
            <li><bean:write name="error"/></li>
          </html:messages> 
        </ul> 
     </logic:messagesPresent>

     <p>

    <!-- use messages tag to display messages -->
    <logic:messagesPresent message="true">
      <bean:message key="message.header"/>
        <ul>
          <html:messages message="true" id="msg"> 
            <li><bean:write name="msg"/></li>
          </html:messages> 
        </ul> 
    </logic:messagesPresent>